package com.copm.ifm.servers.sys.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.copm.ifm.base.api.pojo.BaseVO;
import com.copm.ifm.base.basic.NameTag;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * token表分页返回对象
 *
 * @author tp
 * @date 2021/1/21 14:45
 */
@Setter
@Getter
@ToString
public class SysTokenVO extends BaseVO implements NameTag {

    private Long id;

    @ApiModelProperty("登录名")
    private String username;

    @ApiModelProperty("access_token")
    private String accessToken;

    @ApiModelProperty("过期时间")
    private LocalDateTime expireTime;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("是否有效")
    private Integer isActive;

    @ApiModelProperty("是否删除 [0未删除，1已删除]")
    private Integer deleted;

    @ApiModelProperty("创建人")
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改人")
    private Long updateBy;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("创建人名")
    private String createByName;

    @ApiModelProperty("修改人名")
    private String updateByName;
}
